<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/head.jsp" %>
<html>
<head>
	<title>移动营销项目管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/mom/project/list">微网站列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="pageVisit" action="${ctx}/momarketing/pageVisit/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>名称 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>手机：</label><form:input path="mobile" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>微网页的类型 ：</label>
		<form:select path="type">
			<form:option value="">全部</form:option>
			<form:option value="1">网站微信网</form:option>
			<form:option value="2">广告微网页</form:option>
			<form:option value="3">定时扫描微网页</form:option>
			<form:option value="5">秒杀</form:option>
		</form:select><br/>
		<div style="margin-top:5px;">
		<label class="control-label" style="margin-top:3px;">开始时间:</label>
					<script src="${ctxStatic}/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
					<input id="createTime" name="startTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
						value="<fmt:formatDate value="${pageVisit.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>  
<label class="control-label" style="margin-top:3px;">结束时间:</label>
					<input id="endTime" name="endTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
						value="<fmt:formatDate value="${pageVisit.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
						onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
		
		&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
		</div>
	</form:form>
	<tags:message content="${message}"/>
		<div class="breadcrumb form-search">
	访问量：${ page.count  }
	</div>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr><th>微网页的ID</th>
		<th>微网页的类型</th>
		<th>ip</th>
		<th>姓名</th>
		<th>电话</th>
		<th>创建时间</th>
		<tbody>
		<c:forEach items="${page.list}" var="pageVisit">
			<tr>
				<td>${pageVisit.user.name}</td>
				<td>
				<c:if test="${pageVisit.type eq '1' }">网站微信网 </c:if>
				<c:if test="${pageVisit.type eq '2' }">广告微网页</c:if>
				<c:if test="${pageVisit.type eq '3' }">定时扫描微网页</c:if>
				<c:if test="${pageVisit.type eq '5' }">秒杀</c:if>
				</td>
				<td nowrap="nowrap">${pageVisit.ip}</td>
				<td nowrap="nowrap">${pageVisit.memberName}</td>
				<td nowrap="nowrap">${pageVisit.mobile}</td>
				<td><fmt:formatDate value="${pageVisit.createTime}" type="both"/></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
